home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / os2 / gnuwget.zip / wget-1.4.3 / src / retr.h < prev    next >
C/C++ Source or Header  |  1997-02-09  |  2KB  |  49 lines

  1. /* Declarations for file retrieval.
  2.    Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
  3.    
  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 2 of the License, or
  7.    (at your option) any later version.
  8.    
  9.    This program is distributed in the hope that it will be useful,
  10.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.    GNU General Public License for more details.
  13.    
  14.    You should have received a copy of the GNU General Public License
  15.    along with this program; if not, write to the Free Software
  16.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  17.  
  18.  
  19. #ifndef RETR_H
  20. #define RETR_H
  21.  
  22. /* Retrieval buffer size for get_contents. */
  23. #define BUFFER_SIZE 8192
  24.  
  25. /* Input chunk size for buffered input (buf_readchar). */
  26. #define INPUT_BUFFER_SIZE 4096
  27.  
  28. /* Function declarations */
  29. int buf_readchar PARAMS((int, char *));
  30. int buf_peek PARAMS((int, char *));
  31. int buf_flush PARAMS((char *, int));
  32. void buf_discard PARAMS((void));
  33.  
  34. int get_contents PARAMS((int, FILE *, long *, long, int));
  35. int show_progress PARAMS((long, int));
  36.  
  37.  
  38. uerr_t retrieve_url PARAMS((const char *, char **, char **, const char *, int *));
  39. uerr_t retrieve_from_file PARAMS((const char *, int, int *));
  40.  
  41. void printwhat PARAMS((int, int));
  42.  
  43. void reset_timer PARAMS((void));
  44. long elapsed_time PARAMS((void));
  45. char *time_str PARAMS((time_t *));
  46. char *rate PARAMS((long, long));
  47.  
  48. #endif /* RETR_H */
  49.